﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public  class Util : MonoBehaviour {

    public static  Vector3 PV2UV(Data.Vector3 v)
    {
        return new Vector3(v.x,v.y,v.z);
    }
	
    public static Data.Vector3 UV2PV(Vector3 v)
    {
        Data.Vector3 result = new Data.Vector3
        {
            x = v.x,
            y = v.y,
            z = v.z,
        };

        return result;
    }

    public static Color PC2UC(Data.Color c)
    {
        return new Color(c.r,c.g,c.b);
    }

    public static Data.Color PC2UC(Color c)
    {
        Data.Color result = new Data.Color
        {
            r = c.r,
            g = c.g,
            b = c.b,
        };
        return result;
    }
}
